package cn.edu.gsau.info.controller;

import cn.edu.gsau.info.models.Huojiangjibie;
import cn.edu.gsau.info.models.ResponseResult;
import cn.edu.gsau.info.service.IHuojiangjibieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;


@RestController
@RequestMapping("huojiangjibie")
public class HuojiangjibieController {
    @Autowired
    IHuojiangjibieService huojiangjibieService;


    @GetMapping("findall")
    public ResponseResult findAll(){
        List<Huojiangjibie> list = huojiangjibieService.list();
        return new ResponseResult<Object>(200,"成功",list);
    }

}
